
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Grebok.Common;
using Grebok.Common.Configuration;

namespace EVegetable.Persistence.Test.DataManager
{
    public class TSys_Re_AppMenu_AppActionManager : BaseManager
    {
        #region private field

        private static TSys_Re_AppMenu_AppActionManager manager;
        #endregion

        #region Properties
        
        public Int32 MenuID
        {
            get { return GetConfig<Int32>("MenuID"); }
            set { SetConfig<Int32>("MenuID", value); }
        }
        
        public Int32 ActionID
        {
            get { return GetConfig<Int32>("ActionID"); }
            set { SetConfig<Int32>("ActionID", value); }
        }
        

        #endregion

        #region Constructor

        /// <summary>
        /// TSys_Re_AppMenu_AppActionManager
        /// </summary>
        private TSys_Re_AppMenu_AppActionManager()
        {
            IApplicationConfiguration configuration = ApplicationConfigurationFactor.CreateApplicationConfiguration();
            appPropertiese = new ApplicationProperties(configuration[PropertiesConst.TSYS_RE_APPMENU_APPACTION_PROPERTIES_FILE_NAME_KEY],
                configuration[PropertiesConst.TSYS_RE_APPMENU_APPACTION_PROPERTIES_SECTION_NAME_KEY]);

            appPropertieseValues = new Dictionary<string, object>();
        }
        #endregion

        #region TSys_Re_AppMenu_AppActionManager Instance

        /// <summary>
        /// TSys_Re_AppMenu_AppActionManager's Instance
        /// </summary>
        public static TSys_Re_AppMenu_AppActionManager Instance
        {
            get
            {
                if (manager == null)
                {
                    manager = new TSys_Re_AppMenu_AppActionManager();
                }
                return manager;
            }
        }
        #endregion

    }
}
